/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

.group-user {
  border: 1px solid #ccc;
  background: #fff;
  margin-bottom: 3px;
  padding: 0 15px 0 0;
  line-height: 30px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  &.ui-draggable-dragging {
    cursor: move;
    list-style: none;
    z-index: 9999;
  }
  &.group-user-highlight {
    animation: highlight-shadow-fade ease-in 1s;
  }
  .al-trigger {
    padding: 0;
    text-align:right;
  }
}

.group-user-actions,
.assign-to-group {
  position: absolute;
  top: 0px;
  right: 3px;
  top: 1px;
  i:before {
    color: $ic-icon-link-color;
    font-size: 0.8em;
  }
  .icon-mini-arrow-down{
    text-align:left;
  }
}

.assign-to-group {
  position: absolute;
  top: 1px;
  right: 8px;
}

.group .group-users {
  margin: 1.25em 0 -8px;
  padding: 8px 0;
  overflow: hidden;
  .collectionViewItems {
    width: 103%;
  }
}

.group-leader {
  color: #555;

  a {
    font-size: 0.85em;
  }
}

.group-header {
  .group-summary {
    font-size: 0.85em;
  }
}

.group .group-user {
  float: left;
  width: 31%;
  margin: 0 2% 3px 0;
  box-sizing: border-box;

  .group-category-contents-condensed & {
    width: 23.5%;
    margin: 0 1% 3px 0;
  }

  .group-user-name {
    margin-right: 0;
  }

  .group-leader {
    position: absolute;
    right: 36px;
    top: 7px;
  }
}

.group-user-name {
  max-width: 80%;
  overflow: hidden;
  white-space: nowrap;
  margin-right: 10px;
  font-weight: bold;
  color: #777;
}

.group-users .paginatedLoadingIndicator {
  clear: both;
}
